package actions;

import java.util.ArrayList;
import java.util.List;
import model.VisitorDTO;
import com.opensymphony.xwork2.ActionSupport;
import dao.DataAccessObject;

public class SearchLikeFirstNameAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	
	private String firstName;
	private List<VisitorDTO> vsList;
	DataAccessObject dao = new DataAccessObject();
	
	public SearchLikeFirstNameAction() {
		
	}
	
	public String excute(){
		vsList = dao.searchRegister(firstName);
		return "success";
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public List<VisitorDTO> getVsList() {
		return vsList;
	}

	public void setVsList(List<VisitorDTO> vsList) {
		this.vsList = vsList;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
}
